"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const base_1 = require("./base");
class HourPartDescriber extends base_1.Describer {
    singleNumberSegment(exp) {
        return `${exp}点`;
    }
    spanSegment(exp) {
        const { start, end } = super.parseSpan(exp);
        return `${start}点到${end}点`;
    }
    spanSlashNumberSegment(exp) {
        const { start, end, interval } = super.parseSpanSlashNumber(exp);
        return `${start}点到${end}点之间每隔${interval}小时`;
    }
    starSegment(exp) {
        return "每小时";
    }
    starSlashNumberSegment(exp) {
        const interval = exp.replace('*/', '');
        return `每${interval}小时`;
    }
}
exports.HourPartDescriber = HourPartDescriber;
